package com.example.vinylrecordplayer

import android.os.Bundle
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import kotlinx.android.synthetic.main.activity_main.*

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        initView()
    }

    private fun initView() {
        floatMusic.rootClick {
            Toast.makeText(this@MainActivity,"点击了悬浮窗",Toast.LENGTH_SHORT).show()
        }
    }
}